// pages/mine/mine.js
Page({

  data: {
    avater_src: "/images/avatar.jpeg"
  },
  
  onShow() {
    const userInfo = wx.getStorageSync('userInfo')
    if (userInfo) {
      this.setData({
        avater_src: userInfo.avatar
      })
      console.log(userInfo.avatar);

    }
  },

  toInfoDetail() {
    wx.navigateTo({
      url: '/pages/detail/detail',
    })
  },
  toAddress() {
    wx.navigateTo({
      url: '/pages/adress/adress',
    })
  },
  // 调用拨打电话API
  makeCall (e) {
    wx.makePhoneCall({
      phoneNumber: '13221811874',
      success: (res) => {
        console.log(res)
      },
    })

  },


})